package com.simple.datax;

import com.simple.datax.flow.message.EcFlowMessage;
import com.simple.datax.flow.message.EcFlowMessageBody;
import com.simple.datax.flow.message.EcFlowMessageHead;

/** 
 * @Title: EcFlowMessage.java 
 * @Package com.simple.datax.flow.model 
 * @Description: TODO(报文流程信息) 
 * @author tonney 
 * @date 2013-1-5 下午12:10:11 
 * @version V1.0 
 */
public class Test implements Cloneable{
	String test = "";
	
	public Test clone() {
		Test obj = null;
		try {
			obj = (Test) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return obj;
	}
	
	public static void main(String[] args) {
		EcFlowMessage ecMessage = new EcFlowMessage();
		EcFlowMessageHead messageHead = new EcFlowMessageHead();
		EcFlowMessageBody messageBody = new EcFlowMessageBody();
//		messageBody.getActivityIdList().add("a01");
//		messageHead.setMessageId("1");
		ecMessage.setFlowMessageHead(messageHead);
		ecMessage.setFlowMessageBody(messageBody);
		EcFlowMessage ecMessage2 = ecMessage.clone();
		ecMessage2.getFlowMessageBody().getActivityIdList().clear();
		ecMessage2.getFlowMessageBody().getActivityIdList().add("a02");
//		EcFlowRespMessageHead messageHead2 = ecMessage2.getFlowRespMessageHead().clone();
//		ecMessage2.setFlowRespMessageHead(messageHead2);
		System.out.println(ecMessage.getFlowMessageBody().getActivityIdList().get(0)+","+ecMessage2.getFlowMessageBody().getActivityIdList().get(0));
//		Test t = new Test();
//		t.test = "1";
//		Test t2 = t.clone();
//		t2.test = "2";
//		StartService app = new StartService();
//		app.init();
//		app.waitNo();
	}
}
